<?php


namespace App\Http\Controllers;


use App\Services\UploadService;
use Dingo\Api\Http\Request;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;

class UploadController extends Controller
{

    /**
     * 上传文件
     * @param Request $request
     * @return mixed
     * @author thanatos thanatos915@163.com
     */
    public function upload(Request $request)
    {
        return $this->resArray(UploadService::upload($request));
    }

}
